package com.atguigu.gmall.user.service.impl;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.user.mapper.UserAddressMapper;
import com.atguigu.gmall.user.service.UserAddressService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.jws.soap.SOAPBinding;
import java.util.List;

/**
 * @author gsy
 * @date 2021年09月10日18:51
 * Description
 */
@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Autowired
    private UserAddressMapper userAddressMapper;

    //查询用户对应的地址集合
    @Override
    public List<UserAddress> findUserAddressListByUserId(String userId) {

      return   userAddressMapper.selectList(new QueryWrapper<UserAddress>().eq("user_id",userId));

    }
}
